<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://ckeditor.com" prefix="ckeditor" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>">
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
		<title>无标题文档</title>
		<link rel="stylesheet" href="css/center.css" type="text/css"></link>
		<link rel="stylesheet" href="css/common.css" type="text/css"></link>
		<link rel="stylesheet" href="css/jquery-ui-1.8.5.custom.css"
			type="text/css"></link>
		<script type="text/javascript" src="javascript/center.js">
</script>
		<script type="text/javascript" src="javascript/jquery-1.4.2.js">
</script>
		<script type="text/javascript" src="javascript/jquery.treeview.js">
</script>
		<script type="text/javascript" src="javascript/jquery.cookie.js">
</script>
		<script type="text/javascript"
			src="javascript/jquery-ui-1.8.5.custom.min.js">
</script>
		<script>

</script>

		<script type="text/javascript">
$(function() {
	$("input[name='selectAll']").change(
			function() {
				$("input[name='itemCheckbox']").attr("checked",
						$(this).attr("checked"));
			})
})

function checkAditiveInfoDetail(additiveInfoContent) {

	if (!additiveInfoContent || additiveInfoContent == '') {
		additiveInfoContent = "无"
	}

	$("#additiveInfoContent").html(additiveInfoContent)
	$("#additiveInfoContent").dialog( {
		modal : true,
		width : 600
	});

}
function addAdditiveInfo() {

$("#addAdditiveInfoDiv").dialog( {
		modal : true,
		width:900,
		buttons : {
			'增加' : function() {
				if($("#title").val()==''){
					alert("标题不能为空")
					return;
				}else if($("#author").val()==''){
					alert("作者不能为空")
					return;
				}else if($("#content").val()==''){
					alert("内容不能为空")
					return
				}
				$("#addAddivieinfoForm").submit();

			},
			'取消' : function() {
				$(this).dialog("close")
			}
		}
	})
}
</script>
	</head>

	<body style="overflow: hidden">


		<table width="100%" height="100%" border="1" cellpadding="0"
			cellspacing="0">
			<tr style="height: 9%">
				<td colspan="3">
					<div>
						<jsp:include page="top.jsp"></jsp:include>
					</div>
				</td>
			</tr>
			<tr>
				<td width="171" id=frmTitle noWrap name="fmTitle" align="center"
					valign="top">
					<div>
						<jsp:include page="left.jsp"></jsp:include>
					</div>
				</td>
				<td width="9" valign="middle" bgcolor="#0a5c8e"
					onclick=switchSysBar()>
					<SPAN class=navPoint id=switchPoint title=关闭/打开左栏><img
							src="images/main_41.gif" name="img1" width=9 height=52 id=img1>
					</SPAN>
				</td>
				<td align="center" valign="top">
					<table width="100%" height="100%" border="0" cellpadding="0"
						cellspacing="0" style="table-layout: fixed;">
						<tr>
							<td height="8" style="line-height: 8px;">
								<table width="100%" border="0" cellspacing="0" cellpadding="0"
									style="table-layout: fixed;">
									<tr>
										<td width="14">
											<img src="images/main_24.gif" width="14" height="8">
										</td>
										<td background="images/main_26.gif" style="line-height: 8px;">
											&nbsp;
										</td>
										<td width="7">
											<img src="images/main_28.gif" width="7" height="8">
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td>
								<table width="100%" height="100%" border="0" cellpadding="0"
									cellspacing="0" style="table-layout: fixed;">
									<tr valign="top">
										<td>

											<div style="margin-top: auto; margin-bottom: auto">

												<!-- -----------------------内容区开始---------------------- -->

												<table width="100%" border="0" cellspacing="0"
													cellpadding="0"
													style="margin-top: auto; margin-bottom: auto">
													<tr>
														<td height="30" background="images/tab_05.gif">
															<table width="100%" border="0" cellspacing="0"
																cellpadding="0">
																<tr>
																	<td width="12" height="30">
																		<img src="images/tab_03.gif" width="12" height="30" />
																	</td>
																	<td>
																		<table width="100%" border="0" cellspacing="0"
																			cellpadding="0">
																			<tr>
																				<td width="46%" valign="middle">
																					<table width="100%" border="0" cellspacing="0"
																						cellpadding="0">
																						<tr>
																							<td width="5%">
																								<div align="center">
																									<img src="images/tb.gif" width="16" height="16" />
																								</div>
																							</td>
																							<td width="95%" class="STYLE1">
																								<span class="STYLE3">你当前的位置</span>：信息管理-添加济管理
																							</td>
																						</tr>
																					</table>
																				</td>
																				<td width="54%">
																					<table border="0" align="right" cellpadding="0"
																						cellspacing="0">
																						<tr>

																							<td width="60">
																								<table width="90%" border="0" cellpadding="0"
																									cellspacing="0">
																									<tr>
																										<td class="STYLE1">
																											<div align="center">
																												<img src="images/22.gif" width="14"
																													height="14" />
																											</div>
																										</td>
																										<td class="STYLE1">
																											<div align="center">
																												<a href="javascript:addAdditiveInfo()">新增</a>
																											</div>
																										</td>
																									</tr>
																								</table>
																							</td>

																						</tr>
																					</table>
																				</td>
																			</tr>
																		</table>
																	</td>
																	<td width="16">
																		<img src="images/tab_07.gif" width="16" height="30" />
																	</td>
																</tr>
															</table>
														</td>
													</tr>
													<tr>
														<td>
															<table width="100%" border="0" cellspacing="0"
																cellpadding="0">

																<tr>
																	<td width="8" background="images/tab_12.gif">
																		&nbsp;
																	</td>
																	<td>

																		<table width="100%" border="0" cellpadding="0"
																			cellspacing="1" bgcolor="b5d6e6"
																			onmouseover="changeto()" onmouseout="changeback()">
																			<tr>
																				<td width="3%" height="22"
																					background="images/bg.gif" bgcolor="#FFFFFF">
																					<div align="center">
																						<input type="checkbox" name="selectAll"
																							value="checkbox" />
																					</div>
																				</td>
																				<td height="22" background="images/bg.gif"
																					bgcolor="#FFFFFF">
																					<div align="center">
																						<span class="STYLE1">序号</span>
																					</div>
																				</td>
																				<td height="22" background="images/bg.gif"
																					bgcolor="#FFFFFF">
																					<div align="center">
																						<span class="STYLE1">资讯标题</span>
																					</div>
																				</td>
																				<td height="22" background="images/bg.gif"
																					bgcolor="#FFFFFF">
																					<div align="center">
																						<span class="STYLE1">作者</span>
																					</div>
																				</td>
																				<td height="22" background="images/bg.gif"
																					bgcolor="#FFFFFF">
																					<div align="center">
																						<span class="STYLE1">发布时间</span>
																					</div>
																				</td>
																				<td height="22" background="images/bg.gif"
																					bgcolor="#FFFFFF">
																					<div align="center">
																						<span class="STYLE1">点击量</span>
																					</div>
																				</td>

																			</tr>

																			<!-- -----------------------------------------内容行开始---------------------------------- -->

																			<s:iterator value="addivieinfos" var="addivieinfo"
																				status="status">

																				<tr>
																					<td height="20" bgcolor="#FFFFFF">
																						<div align="center">
																							<input type="checkbox" name="itemCheckbox"
																								value="checkbox" />
																						</div>
																					</td>
																					<td height="20" bgcolor="#FFFFFF">
																						<div align="center" class="STYLE1">
																							<div align="center">
																								<s:property value="status.index+1" />
																							</div>
																						</div>
																					</td>
																					<td height="20" bgcolor="#FFFFFF">
																						<div align="center" class="STYLE1">
																							<div align="center">

																								<a
																									href="javascript:checkAditiveInfoDetail('<s:property value="#addivieinfo.addivieInfoContent" />')"
																									style="color: red"> <s:property
																										value="#addivieinfo.addivieInfoTitle" /> </a>
																							</div>
																						</div>
																					</td>
																					<td height="20" bgcolor="#FFFFFF">
																						<div align="center" class="STYLE1">
																							<div align="center">
																								<s:property
																									value="#addivieinfo.addivieInfoAuthor" />
																							</div>
																						</div>
																					</td>
																					<td height="20" bgcolor="#FFFFFF">
																						<div align="center" class="STYLE1">
																							<div align="center">
																								<s:property value="#addivieinfo.infoPublishTime" />
																							</div>
																						</div>
																					</td>
																					<td height="20" bgcolor="#FFFFFF">
																						<div align="center" class="STYLE1">
																							<div align="center">
																								<s:property value="#addivieinfo.click" />
																							</div>
																						</div>
																					</td>

																				</tr>
																			</s:iterator>
																			<!-- -----------------------------------------内容行结束---------------------------------- -->


																		</table>
																	</td>
																	<td width="8" background="images/tab_15.gif">
																		&nbsp;
																	</td>
																</tr>
															</table>
														</td>
													</tr>
													<tr>
														<td height="35" background="images/tab_19.gif">
															<table width="100%" border="0" cellspacing="0"
																cellpadding="0">
																<tr>
																	<td width="12" height="35">
																		<img src="images/tab_18.gif" width="12" height="35" />
																	</td>
																	<td>
																		<table width="100%" border="0" cellspacing="0"
																			cellpadding="0">
																			<tr>
																				<td class="STYLE4">
																					&nbsp;&nbsp;共有 120 条记录，当前第 1/10 页
																				</td>
																				<td>
																					<table border="0" align="right" cellpadding="0"
																						cellspacing="0">
																						<tr>
																							<td width="40">
																								<img src="images/first.gif" width="37"
																									height="15" />
																							</td>
																							<td width="45">
																								<img src="images/back.gif" width="43"
																									height="15" />
																							</td>
																							<td width="45">
																								<img src="images/next.gif" width="43"
																									height="15" />
																							</td>
																							<td width="40">
																								<img src="images/last.gif" width="37"
																									height="15" />
																							</td>
																							<td width="100">
																								<div align="center">
																									<span class="STYLE1">转到第 <input
																											name="textfield" type="text" size="4"
																											style="height: 12px; width: 20px; border: 1px solid #999999;" />
																										页 </span>
																								</div>
																							</td>
																							<td width="40">
																								<img src="images/go.gif" width="37" height="15" />
																							</td>
																						</tr>
																					</table>
																				</td>
																			</tr>
																		</table>
																	</td>
																	<td width="16">
																		<img src="images/tab_20.gif" width="16" height="35" />
																	</td>
																</tr>
															</table>
														</td>
													</tr>
												</table>


												<!-- -----------------------内容区结束---------------------- -->
											</div>
										</td>
										<td width="3" style="width: 3px; background: #0a5c8e;">
											&nbsp;
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td height="12" style="line-height: 12px;">
								<table width="100%" border="0" cellspacing="0" cellpadding="0"
									style="table-layout: fixed;">
									<tr>
										<td width="14" height="12">
											<img src="images/main_46.gif" width="14" height="12">
										</td>
										<td background="images/main_48.gif" style="line-height: 12px;">
											&nbsp;
										</td>
										<td width="7">
											<img src="images/main_50.gif" width="7" height="12">
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<div id="additiveInfoContent" style="display: none" title="资讯内容">
		</div>
		<div id="addAdditiveInfoDiv" title="增加资讯内容">
			<form action="addAddivieinfoAction" method="post" id="addAddivieinfoForm">
				<table>
					<tr>
						<td>
							标题:
							<input type="text" name="title" id="title">
						</td>
					</tr>
					<tr>
						<td>
							作者:
							<input type="text" name="author" id="author">
						</td>
					</tr>
					<tr>
						<td>
							资讯内容:
							<br />
							<textArea cols="70" rows="16" name="content"  id="content"></textArea>
						</td>
				</table>
			</form>
		</div>
		<ckeditor:replace  replace="content" basePath="ckeditor/" />
		
	</body>
</html>



